package l744.GuanDao;

import javax.swing.*;

//鸟
public class Bird extends GuanDaoObject{
    public Bird(){
        super(45,55,100);
        speed+=speed;
        y=GuanDaoMain.HEIGHT/2;
    }
    public  ImageIcon getImages(){
        return GuanDaoPng.Bird;
    }

    public void move(){
        y+=speed;
        if (speed<3)
            speed++;
    }
    public void jump(){
        speed=-11;
    }

}